package org.hhh.pet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.hhh.basic.domain.Base;
import org.hhh.org.domain.Shop;
import org.hhh.user.domain.User;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class Pet extends Base {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date offsaletime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    private Date onsaletime;
    private Integer state=0;//0下架，1上架
    private BigDecimal costprice;
    private Date createtime=new Date();
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long adopt_id;
    private Long search_master_msg_id;

    private PetDetail detail = new PetDetail();

    /**
     * 支付方式
     */
    private Integer payType;



}
